import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);
const routes = [
  {
    path: "/login",
    component: () => import(/*webPackChunkName:'login' */ "../pages/login"),
  },
  {
    path: "/",
    component: () => import(/*webPackChunkName:'home' */ "../pages/Home"),
    children: [
      {
        path: "/Attendance",
        component: () =>
          import(/*webPackChunkName:'Attendance' */ "../pages/Home/Attendance"),
        // 元路由信息
        meta: {
          // 储存一些用户定义的属性
        },
      },
      {
        path: "/Mine",
        component: () =>
          import(/*webPackChunkName:'Mine' */ "../pages/Home/Mine"),
        // 元路由信息
        meta: {
          // 储存一些用户定义的属性
        },
      },
      {
        path: "/Statistics",
        component: () =>
          import(/*webPackChunkName:'Statistics' */ "../pages/Home/Statistics"),
        // 元路由信息
        meta: {
          // 储存一些用户定义的属性
        },
      },
      {
        path: "/Users",
        component: () =>
          import(/*webPackChunkName:'Users' */ "../pages/Home/Users"),
        // 元路由信息
        meta: {
          // 储存一些用户定义的属性
        },
      },
      {
        path: "/Welcome",
        component: () =>
          import(/*webPackChunkName:'Welcome' */ "../pages/Home/Welcome"),
        // 元路由信息
        meta: {
          // 储存一些用户定义的属性
        },
      },
      {
        path: "/404",
        component: () =>
          import(/*webPackChunkName:'404' */ "../pages/Home/404"),
        // 元路由信息
        meta: {
          // 储存一些用户定义的属性
        },
      },
      {
        path: "/StudentManger",
        component: () =>
          import(
            /*webPackChunkName:'StudentManger' */ "../pages/Home/StudentManger"
          ),
        // 元路由信息
        meta: {
          // 储存一些用户定义的属性
        },
      },
    ],
  },
];
export default new VueRouter({
  mode: "history",
  routes,
});
